package com.github.pig.admin.service.zhgl.houseowner;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.github.pig.admin.model.device.GuardDevice;
import com.github.pig.admin.model.zhgl.house.UnitHouse;
import com.github.pig.admin.model.zhgl.house.UnitHouseBean;
import com.github.pig.admin.model.zhgl.houseowner.HouseOwner;
import com.github.pig.admin.util.AjaxJson;

import java.util.List;

/**
 * <p>
 * 业主基本信息表 服务类
 * </p>
 *
 * @author lxm
 * @since 2018-06-20
 */
public interface IHouseOwnerService extends IService<HouseOwner> {

    Page querHouseOwnerGrid(Page<HouseOwner> page, HouseOwner houseOwner);

    List<UnitHouseBean> queryUnitHouse(UnitHouseBean unithouse);

    UnitHouseBean getUnitHouseBean(String buildingName, String unitName, String houseName, String communityId);

    List<GuardDevice> isOverLimit(HouseOwner houseOwner);

    AjaxJson addOwner(HouseOwner houseOwner);

    boolean delOwner(HouseOwner unitHouse);

    boolean delOwnerList(List<HouseOwner> list);

    AjaxJson batchAddOwner(List<HouseOwner> insertList, List<UnitHouse> unitHousesList, String substring, int size);

    void handOverHouse(HouseOwner houseOwner,AjaxJson json);

    AjaxJson updateOwner(HouseOwner houseOwner);
}
